Limit Linux-only code with Q_OS_LINUX
authorPino Toscano <toscano.pino@tiscali.it>
Wed, 29 Jul 2026 08:26:16 +0000 (11:26 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Wed, 29 Jul 2026 08:26:16 +0000 (11:26 +0300)
commitffaa9cb78f765b5fb40949019f644b2fdf36e39f
tree282361a9e4f745c1f8f51a7075b939422871bd60
parent3d36094fb7db0cce7af16e20ae783a6c5c2b7bba
Limit Linux-only code with Q_OS_LINUX

Forwarded: no
Last-Update: 2020-04-19

The QStorageInfo/QStorageIterator implementation used for Linux is used also
on Hurd, as it uses an interface provided by GNU libc.
QStorageIterator::device() tries to use PATH_MAX (unavailable on the Hurd)
to lookup a /dev/block/ path, which exists on Linux only; hence, perform that
check within a Q_OS_LINUX block.

Gbp-Pq: Name qstorageinfo_linux.diff
src/corelib/io/qstorageinfo_unix.cpp